package com.hundsun.fcp.common.utils;

import com.hundsun.fcp.R;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.assist.ImageScaleType;

public class DisplayImageOptionsUtil {
	/**
	 * 推广图片缓存
	 * @return
	 */
	public static DisplayImageOptions adImageOptions()
	{
		return new DisplayImageOptions.Builder()
		.cacheInMemory(true) 
		.cacheOnDisk(true)
		.considerExifParams(true) 
		.imageScaleType(ImageScaleType.EXACTLY)
		.showImageForEmptyUri(R.drawable.epc_ad_image_defult) 
		.showImageOnFail(R.drawable.epc_ad_image_defult)
		.showImageOnLoading(R.drawable.epc_ad_image_defult)
		.build() ;
	}
	/**
	 * 活动中心图片缓存
	 * @return
	 */
	public static DisplayImageOptions actionImageOptions()
	{
		return new DisplayImageOptions.Builder()
		.cacheInMemory(true) 
		.cacheOnDisk(true)
		.considerExifParams(true) 
		.imageScaleType(ImageScaleType.EXACTLY)
		.showImageForEmptyUri(R.drawable.epc_ad_image_defult) 
		.showImageOnFail(R.drawable.epc_ad_image_defult)
		.showImageOnLoading(R.drawable.epc_ad_image_defult)
		.build() ;
	}
	
	/**
	 * 已登录的头像 默认设置
	 * @return
	 */
	public static DisplayImageOptions loginImageOptions(){
		return new DisplayImageOptions.Builder()
		.cacheInMemory(true) 
		.cacheOnDisk(true)
		.considerExifParams(true) 
		.imageScaleType(ImageScaleType.EXACTLY)
		.showImageForEmptyUri(R.drawable.mine_photo_haslogin) 
		.showImageOnFail(R.drawable.mine_photo_haslogin)
		.showImageOnLoading(R.drawable.mine_photo_haslogin)
		.build() ;
	}
	
	/**
	 * 未登录的头像 默认设置
	 * @return
	 */
	public static DisplayImageOptions unloginImageOptions(){
		return new DisplayImageOptions.Builder()
		.cacheInMemory(true) 
		.cacheOnDisk(true)
		.considerExifParams(true) 
		.imageScaleType(ImageScaleType.EXACTLY)
		.showImageForEmptyUri(R.drawable.mine_photo_default) 
		.showImageOnFail(R.drawable.mine_photo_default)
		.showImageOnLoading(R.drawable.mine_photo_default)
		.build() ;
	}
}
